/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ihc.terminalbanco.gui.panels;

import ihc.terminalbanco.gui.buttons.LabelButton;
import ihc.terminalbanco.gui.events.Events;
import ihc.terminalbanco.gui.events.KeyActionsMelhorIdade;
import java.awt.Font;
import java.awt.GridLayout;
import java.util.ArrayList;
import javax.swing.JPanel;

/**
 *
 * @author Rafael
 */

public class ConstructMenusPanelsMelhorIdade implements RotulosInterface{

    public static Font fonte = new Font("Times New Roman", Font.PLAIN ,24);
    public static Events actionListener;
    public static KeyActionsMelhorIdade keyListener;
 //   private static LabelButton voltarButton = new LabelButton(voltarString, 2, 2,"images/voltar.png");


    public static JPanel constructMainMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane terminalPane = new TerminalPane("Menu Principal",
                "Menu Principal", actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();
        /*ECEMPLO DE CONSTRUTORES QUE COLOCAM IMAGEM*/
        labelButtonList.add(new LabelButton(saldoString, 1, 1,"images/saldo.gif"));
        labelButtonList.add(new LabelButton(extratoString, 2, 1, "images/extrato.png"));
        labelButtonList.add(new LabelButton(saqueString, 3, 1,"images/saque.png"));
        labelButtonList.add(new LabelButton(servicosString, 1, 2, "images/servicos.png"));
        labelButtonList.add(new LabelButton(pagamentosString, 2, 2,"images/pagamento.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        terminalPane.addLabelButtonList(labelButtonList);
        terminalPane.setVisible(true);
        return terminalPane;
    }

    public static JPanel constructExtratoMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Extratos", "Menu Principal -> Extrato",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(complExtratoStringMelhorIdade, 1, 1));
        labelButtonList.add(new LabelButton(semanalExtratoString, 2, 1));
        labelButtonList.add(new LabelButton(quinzenalExtrato, 3, 1));

        labelButtonList.add(new LabelButton(outrosExtratosString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

    public static JPanel constructOutrosExtratoMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Outros Extratos", "Menu Principal -> Extrato -> Outros",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(mensalExtratoString, 1, 1));
        labelButtonList.add(new LabelButton(totalExtratoString, 2, 1));
        labelButtonList.add(new LabelButton(emprestimoExtratoString, 3, 1));
        labelButtonList.add(new LabelButton(saldoMesExtratoStringMelhorIdade, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

    public static JPanel constructServicosMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Serviços", "Menu -> Serviços",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(transferenciaString, 1, 1));
        labelButtonList.add(new LabelButton(emprestimosString, 2, 1));
        labelButtonList.add(new LabelButton(demonstrativosString, 3, 1));
        labelButtonList.add(new LabelButton(maisServicosString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

     public static JPanel constructMaisServicosMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Serviços", "Menu -> Serviços -> Mais Serviços",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(ipvaString, 1, 1));
        labelButtonList.add(new LabelButton(senhasString, 2, 1));
        labelButtonList.add(new LabelButton(recargaString, 3, 1));
        labelButtonList.add(new LabelButton(complTeleservString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }


    public static JPanel constructDemonstrativoMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Demonstrativos","Menu -> Serviços -> Demonstrativos",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(contraChequeString, 1, 1));
        labelButtonList.add(new LabelButton(complTeleservString, 2, 1));
        labelButtonList.add(new LabelButton(tarifasString, 3, 1));
        labelButtonList.add(new LabelButton(outrosDemonstrativosString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

    public static JPanel constructPagamentosMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Pagamentos","Menu -> Pagamentos",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(codigoBarrasString, 1, 1, "images/codigo.png"));
        labelButtonList.add(new LabelButton(icmsString, 2, 1));
        labelButtonList.add(new LabelButton(agendaString, 3, 1,"images/agenda.png"));
        labelButtonList.add(new LabelButton(outrosPagamentosString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

    public static JPanel constructOutrosPagamentosMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Outros Pagamentos","Menu -> Serviços -> Pagamentos -> Outros",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(gpsString, 1, 1));
        labelButtonList.add(new LabelButton(extratoString, 2, 1));
        labelButtonList.add(new LabelButton(comprovanteString, 3, 1));
        labelButtonList.add(new LabelButton("", 1, 2,false));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

    public static JPanel constructEmprestimoMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("emprestimo-menu", emprestimosString,
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(creditoUmMinutoString, 1, 1));
        labelButtonList.add(new LabelButton(creditoPessoalString, 2, 1));
        labelButtonList.add(new LabelButton("", 3, 1,false));
        labelButtonList.add(new LabelButton("", 1, 2,false));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }

    public static JPanel constructSaqueMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("saque-menu","Menu -> Saque",
                "<html><font color='green'><br>Saldo: R$ 500,00<br></font></html>",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        labelButtonList.add(new LabelButton(primeiroValorString, 1, 1));
        labelButtonList.add(new LabelButton(segundoValorString, 2, 1));
        labelButtonList.add(new LabelButton(terceiroValorString, 3, 1));
        labelButtonList.add(new LabelButton(outroValorString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);

        return panel;
    }

    public static JPanel constructCodigoBarrasMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("codigo-barras-menu","Código de Barras Menu",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();


        labelButtonList.add(new LabelButton(leituraString, 1, 1,"images/codigo.png"));
        labelButtonList.add(new LabelButton(digitacaoString, 2, 1));
        labelButtonList.add(new LabelButton("", 3, 1,false));
        labelButtonList.add(new LabelButton("", 1, 2,false));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));

        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);

        return panel;
    }

    public static JPanel constructAgendaMenu() {
        int rows = 3, cols = 2;
        GridLayout gridLayoutTerminal = new GridLayout(rows, cols, 20, 60);
        TerminalPane panel = new TerminalPane("Agenda","Agendamento",
                actionListener, keyListener, gridLayoutTerminal,
                ConstructMenusPanelsMelhorIdade.fonte);

        ArrayList<LabelButton> labelButtonList = new ArrayList<LabelButton>();

        //agendamento / extrato / Comprovantes / Exclusão
        /*
    String agendamentoString = "Agendamento",
           comprovantesString = "Comprovantes", exclusaoString = "Exclusão";
    */
        labelButtonList.add(new LabelButton(agendamentoString, 1, 1));
        labelButtonList.add(new LabelButton(extratoString, 2, 1));
        labelButtonList.add(new LabelButton(comprovantesString, 3, 1));
        labelButtonList.add(new LabelButton(exclusaoString, 1, 2));
        labelButtonList.add(new LabelButton(voltarString, 2, 2,"images/voltar.png"));
        labelButtonList.add(new LabelButton(ajudaString, 3, 2,"images/ajuda.png"));
        panel.addLabelButtonList(labelButtonList);
        panel.setVisible(true);
        return panel;
    }
}
